<?php
	if (count($business_lines) > 0) { ?>
		<table cellpadding="5" cellspacing="0" border="1">
            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>Delete</th>
            </tr>
            <?php foreach($business_lines as $bline) { ?>
                <tr>
                    <td><?php echo $bline->id; ?></td>
                    <td><a href="<?php 
                    $url = 'bline/getAll' . $bline->id;
                    echo site_url("$url"); ?>"><?php echo $bline->name; ?></a></td>
                    <td><a href="<?php 
                    $url = 'bline/deletebusinessline/' . $bline->id;
                    echo site_url("$url"); ?>">Delete</a>
                    </td>
                </tr>
            <?php } ?>
		</table>
		<?php 
    }
    else{ ?>
    No hay campos para mostrar <?php 
    }?>
	
	<a href="<?php echo site_url('bline/addBusinessLine'); ?>">New Business Line</a>